/*
 * @Author: DingNanLin 1981261270@qq.com
 * @Date: 2024-12-02 11:43:35
 * @LastEditors: DingNanLin 1981261270@qq.com
 * @LastEditTime: 2024-12-09 17:11:34
 * @FilePath: \water-soil-conservation-web\src\utils\loadImg.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 *  动态加载图片
 */
export const loadImg = imgName => {
    let imgUrl = new URL(`../assets/images/${imgName}`, import.meta.url).href
    return imgUrl
}
